package com.xuetang9.BBS.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.xuetang9.BBS.dao.TopicDao;
import com.xuetang9.BBS.domain.Topic;
import com.xuetang9.BBS.service.TopicService;

@Service
public class TopicServiceImpl implements TopicService {

	private TopicDao topicDao;
	
	
	@Override
	public List<Topic> selectTopic(Topic top) {
	
		return topicDao.selectTopic(top);
	}


	@Override
	public boolean save(Topic topic) {
		
		return topicDao.save(topic)==1;
	}

}
